package it.nard.sourceframes;

import java.awt.Color;
import java.awt.Dialog;
import java.awt.Font;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;
import org.dyno.visual.swing.layouts.Trailing;

//VS4E -- DO NOT REMOVE THIS LINE!
public class Credits extends JDialog {

	private static final long serialVersionUID = 1L;
	private JTextPane jTextPane0;
	private JScrollPane jScrollPane0;
	private JButton jButton0;

	public Credits(Window parent) {
		super(parent);
		initComponents();
	}

	public Credits(Dialog parent, String title, boolean modal,
			GraphicsConfiguration arg) {
		super(parent, title, modal, arg);
		initComponents();
	}

	public Credits(Dialog parent, String title, boolean modal) {
		super(parent, title, modal);
		initComponents();
	}

	public Credits(Dialog parent, String title) {
		super(parent, title);
		initComponents();
	}

	public Credits(Window parent, String title, ModalityType modalityType,
			GraphicsConfiguration arg) {
		super(parent, title, modalityType, arg);
		initComponents();
	}

	public Credits(Window parent, String title, ModalityType modalityType) {
		super(parent, title, modalityType);
		initComponents();
	}

	public Credits(Window parent, String title) {
		super(parent, title);
		initComponents();
	}

	public Credits(Window parent, ModalityType modalityType) {
		super(parent, modalityType);
		initComponents();
	}

	public Credits(Frame parent, String title) {
		super(parent, title);
		initComponents();
	}

	public Credits(Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
	}

	public Credits(Frame parent) {
		super(parent);
		initComponents();
	}

	public Credits() {
		initComponents();
	}

	public Credits(Dialog parent, boolean modal) {
		super(parent, modal);
		initComponents();
	}

	public Credits(Dialog parent) {
		super(parent);
		initComponents();
	}

	public Credits(Frame parent, String title, boolean modal,
			GraphicsConfiguration arg) {
		super(parent, title, modal, arg);
		initComponents();
	}

	public Credits(Frame parent, String title, boolean modal) {
		super(parent, title, modal);
		initComponents();
	}

	private void initComponents() {
		setTitle("Credits");
		setFont(new Font("Dialog", Font.PLAIN, 12));
		setBackground(Color.white);
		setForeground(Color.black);
		setLayout(new GroupLayout());
		add(getJButton0(), new Constraints(new Leading(106, 10, 10), new Trailing(12, 41, 225)));
		add(getJScrollPane0(), new Constraints(new Leading(5, 301, 10, 10), new Leading(7, 222, 10, 10)));
		setSize(320, 277);
	}

	private JButton getJButton0() {
		if (jButton0 == null) {
			jButton0 = new JButton();
			jButton0.setText("Chiudi");
			jButton0.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jButton0ActionActionPerformed(event);
				}
			});
		}
		return jButton0;
	}

	private JScrollPane getJScrollPane0() {
		if (jScrollPane0 == null) {
			jScrollPane0 = new JScrollPane();
			jScrollPane0.setViewportView(getJTextPane0());
		}
		return jScrollPane0;
	}

	private JTextPane getJTextPane0() {
		if (jTextPane0 == null) {
			jTextPane0 = new JTextPane();
			jTextPane0
					.setText("	DIGIPOINT 2.0\n----------------------------------------------------------------------\n	Complete Digital Point\nDate : 01/08/2013\n\nAuthors: \nPietro Nardone\nRoberto Nardone\n\nPer Info: pietro.nardone@gmail.com\n	roberto.nardone@gmail.com\n	mozzarisys@gmail.com\n	cell. 3389552620");
		}
		return jTextPane0;
	}

	private void jButton0ActionActionPerformed(ActionEvent event) {
		this.setVisible(false);
	}

}
